var user ;
var userStr = sessionStorage.getItem("user");
if (userStr) {
    user = JSON.parse(userStr);
}else {
    location.href="/login.html";
}